package com.cats.template.sys.exception;

import com.cats.template.sys.enums.ResponseEnum;

/**
 * @author duxiaobo
 * @date 2021/10/116:22 下午
 */
public class BusinessException extends CatException{
    public BusinessException(String message) {
        super(ResponseEnum.ERROR.getCode(),message);
    }
    public BusinessException(int code, String message) {
        super(code, message);
    }

    public BusinessException(ResponseEnum responseEnum) {
        super(responseEnum.getCode(), responseEnum.getMsg());
    }
}
